FROM java:8
ADD target/collector-0.0.1-SNAPSHOT.jar /collector.jar
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 8001
ENTRYPOINT ["java","-Xms128m","-Xmx128m","-jar","collector.jar"]